# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=joker
pkgver=1.3.5
pkgrel=2
pkgdesc="Small Clojure interpreter, linter and formatter written in Go"
url="https://joker-lang.org/"
# armhf, armv7, x86: tests fail
arch="all !armhf !armv7 !x86"
license="EPL-1.0"
makedepends="go"
checkdepends="bash"
source="https://github.com/candid82/joker/archive/v$pkgver/joker-$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go generate -v ./...
	go vet -v ./...
	go build -v
}

check() {
	./all-tests.sh
}

package() {
	install -Dm755 joker -t "$pkgdir"/usr/bin
}

sha512sums="
f52c90d6dcaa25cc89d9335394d13b57fc27966eecc0dfcda7385d5b5ad7364b9526c0a1e492feee1313157cfe2f0e13d77988e7720edee970ea159de89220ff  joker-1.3.5.tar.gz
"
